package day03;

public class HomeWork01 {
    public static void main(String[] args) {
       /* int a=250,b=120;
        int max=a>b?a:b;
        System.out.println("max="+max);*/
        double price=150.5;
        if (price>120){
            price*=0.9;
        }else {
            price*=0.95;
        }
        System.out.println("最终金额为："+price);
        int year=2025;
        if (year%4==0 && year%100!=0 || year%400==0){
            System.out.println(year+"年是闰年");
        } else {
            System.out.println(year+"年不是闰年");
            int a=600,b=900;
            int max=a>b?a:b;
            System.out.println("最大值为:"+max);


        }
    }
}
